import { getTranslations, setRequestLocale } from 'next-intl/server'; import Link from 'next/link'; import { LocaleSwitcher } from '@/components/LocaleSwitcher'; import { BaseTemplate } from '@/templates/BaseTemplate'; export default async function DashboardLayout(props: { children: React.ReactNode; params: Promise<{ locale: string }>; }) { const { locale } = await props.params; setRequestLocale(locale); const t = await getTranslations({ locale, namespace: 'DashboardLayout', }); return (
  • {t('dashboard_link')}
  • {t('user_profile_link')}
  • )} rightNav={( <>
  • )} > {props.children}
    ); }